package com.victualler.core.config.img.service;

import com.victualler.core.base.service.BaseService;
import com.victualler.core.config.img.entity.ImageDirDao;
import com.victualler.core.config.img.repository.ImageDirRepository;
import com.victualler.core.config.img.repository.impl.ImageDirQueryRepositoryImpl;

import java.util.List;

/**
 * @Author: Guoshichang
 * @Date: Create in 22:55 2018-04-23
 * @Discription:
 */
public interface ImageDirService extends BaseService<ImageDirDao,ImageDirRepository,ImageDirQueryRepositoryImpl> {
    /**
     * 根据父文件夹的id号取子表id
     * @param parentId
     * @return
     */
    public List<ImageDirDao> getByParentId(Long parentId);

    public boolean dirIsUsed(Long id);
}
